# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-nslookup
_pkgname=Net-Nslookup
pkgver=2.04
pkgrel=13
pkgdesc='Provide nslookup(1)-like capabilties.'
arch=('any')
url='http://search.cpan.org/~darren/Net-Nslookup/lib/Net/Nslookup.pm'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/D/DA/DARREN/$_pkgname-$pkgver.tar.gz")
sha512sums=('401ad5a9e445175ef535e8ec6dc884a8d0ed8234ac017d79216fcb51dce59eb131aff15b2fe4aa426f772f7d59053e8580f5aa0f69f38700339b61fdb6fad27f')

build() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

